<?php

$idx = new showBid;

class showBid
{
	function showBid()
	{
		global $DB,$BIZ;
				/*without pic*/
		$DB -> db_query("SELECT goods_id,goods_name,goods_price FROM biz_goods WHERE  goods_mark_sell='0' ORDER BY goods_store_date DESC LIMIT 10");
		while($r=$DB -> db_fetch_row())
		{
			$d[] = array( $r['goods_id'],$r['goods_name'],$r['goods_price'] );
		}
		$DB -> db_query("SELECT shop_id,shop_name FROM biz_shop ORDER BY shop_create_time DESC LIMIT 10");
		while($r=$DB -> db_fetch_row())
		{
			$s[]= array( $r['shop_id'],$r['shop_name'] );
		}
		$BIZ -> assign('d',$d);	
		$BIZ -> assign('s',$s);
		$BIZ -> output('showBid.tpl');
	}
	
}
?>
